<!-- 设置定时器模态框（Modal） -->
<div class="modal fade" id="clockModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    校正设备时间
                </h4>
            </div>
            <form role="form" action="/site/set-clock?deviceId=<?= $_GET['deviceId'] ?>" method="post"
                  id="clockForm" class="form-horizontal">
                <div class="modal-body">
                    <div class="form-group">
                        <label for="lastname" class="col-sm-2 control-label">设备时间</label>
                        <div class="col-sm-6">
                            <input type="text" class="layui-input form-control" id="currentDate" placeholder="" name="date">
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">
                        关闭
                    </button>
                    <button type="button" class="btn btn-primary submit-modal">
                        提交更改
                    </button>
                </div>
            </form>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

